﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BaseData.Domain.Interfaces
{

    /// <summary>
    /// 软删除实体标记接口
    /// </summary>
    /// <remarks>
    /// 该接口用于标识支持软删除功能的实体类
    /// 软删除是指通过标记而非物理删除的方式移除数据
    /// </remarks>
    public interface ISoftDeleteEntity
    {
    }

    /// <summary>
    /// 带有删除状态的软删除实体接口
    /// </summary>
    /// <remarks>
    /// 继承自<see cref="ISoftDeleteEntity"/>，
    /// 添加了明确的删除状态标识属性
    /// </remarks>
    public interface ISoftDeleteEntityWithDeleted : ISoftDeleteEntity
    {
        /// <summary>
        /// 获取或设置是否已删除
        /// </summary>
        /// <value>
        /// true表示已软删除，false表示未删除
        /// </value>
        bool IsDelete { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>

	}
    /// <summary>
    /// 审计接口
    /// </summary>
	public interface IAuditable
	{
        /// <summary>
        /// 添加人
        /// </summary>
		int UserId { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
		DateTime CreatedTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
		public int? UpdateUser { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
		DateTime? UpdatedTime { get; set; }
		int? DeleteUser { get; set; }
		/// <summary>
		/// 删除时间
		/// </summary>
		DateTime? DeleteTime { get; set; }
	}
}
